package edu.ThreadDemo;

public class startDemo implements Runnable{
	private String sum="string start...";
	public static void main(String[] args) throws InterruptedException {
		startDemo jd=new startDemo();
		Thread thread=new Thread(jd);
		thread.start();
		thread.join();		
		System.out.println(jd.sum);
	}
	public void run() {
		for(int i=0;i<100;i++) {
			sum=sum+i;
		}
	}
}